Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** global: GLSR, jQuery */ |
||
46 | postFromEvent_: function( callback ) { // Event, function|void |
||
47 | this.event.preventDefault(); |
||
48 | var el = x( this.event.target ); |
||
49 | if( el.is( ':disabled' ))return; |
||
50 | el.prop( 'disabled', true ); |
||
51 | x.post( GLSR.ajaxurl, this.buildData_( el ), function( response ) { |
||
52 | if( typeof callback === 'function' ) { |
||
53 | callback( response ); |
||
54 | } |
||
55 | el.prop( 'disabled', false ); |
||
56 | }); |
||
57 | }, |
||
58 | }; |
||
62 |